package com.xiyi.shouxin.entity.admin;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import lombok.Data;

/*
 * 一个管理员只能有一个角色
 * 一个角色具有多个菜单权限
 */
@Data
@Table(value = "role")
public class Role {
    @Id
    @Column(value = "id")
    private Long id;
    @Column(value = "role_name")
    private String roleName;

}
